FROM php:7-fpm-buster
MAINTAINER sky_day2012 "douxuefeng@ihuanyan.cn"
COPY sources.list /etc/apt/
RUN apt update && apt install -y \
		cron \
        apt-transport-https \
        libfreetype6-dev \
        libjpeg62-turbo-dev \
        libpng-dev \
        libzip-dev \
        libwebp-dev \
        nano \
        zip \
        openssl \
        libssl-dev \
    && docker-php-ext-install -j$(nproc) iconv \
    && docker-php-ext-configure gd --with-freetype=/usr/include/freetype2/ --with-webp=/usr/include/webp --with-jpeg=/usr/include \
    && docker-php-ext-install -j$(nproc) gd \
    && docker-php-ext-install pdo_mysql \
    && docker-php-ext-install bcmath \
    && docker-php-ext-install zip \
    && pecl install redis \
    && docker-php-ext-enable redis \
    && pecl install mongodb 

